package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.pojo.Dietary;
import org.dey.pojo.PageVo;

public interface DietaryService extends IService<Dietary> {
    //查
    public PageVo<Dietary> queryDietar(Dietary dietary,int pageNum, int pageSize);

    //添加
    public int insertDietar(Dietary dietary);

    //删除
    public int deleteDietar(int id);

    //修改前先根据id查到该数据
    public Dietary queryDietarByid(int id);

    //根据id修改
    public int updateDietar(Dietary dietary);
}
